import React from 'react'

class App extends React.Component {
    constructor(){
        super()
    }
    click(props){
        props.history.push('/list')
    }
    click2(props){
        props.history.push('/son')
    }
    render() {
        console.log(this.props.match)
        return (
            <div>
                home
                <button onClick={()=>this.click(this.props)}>
                    点击
                </button>
                <button onClick={()=>this.click2(this.props)}>
                    son
                </button>
            </div>
        )
    }
}
export default App
